package com.bigluo.api.req;

import com.bigluo.api.BaseRequest;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * Created by luojun on 2017/9/7.
 */
public class SaveUsrInfoReq extends BaseRequest {
    @NotBlank(message = "用户姓名不能为空")
    private String  name;
    @NotNull(message = "用户年龄不能为空")
    @Min(value = 1,message = "用户年龄值最小为1")
    @Max(value = 150,message = "用户年龄值最大为150")
    private Integer age;
    @NotBlank(message = "用户地址不能为空")
    private String  addr;
    @NotBlank(message = "用户密码不能为空")
    private String  pwd;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }
}
